<?php
/**
 * @Author: Marte
 * @Date:   2017-08-13 08:32:31
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-13 20:01:25
 */

// include "data/config_connect.php";
// $username=$_SESSION['username'];
$_sql1='select * from userregisters where username="'.$username.'"';
$_result=$_mysql->query($_sql1);//返回结果集合
$_assoc=$_result->fetch_assoc();
?>
    <script src="/plug_ins/dialog.js" type="text/javascript" charset="utf-8"></script>
    <span class="myinfo_title">>  个人信息设置</span>
                <div class="myinfo">
                        <dl class="myinfo_dl">
                        <!-- <form action="data/user/add_user_info.php" method="get" accept-charset="utf-8"> -->
                            <dd><span>用户名:</span><?php  echo $_assoc['username'];?></dd>
                            <dd><span>昵称：</span><?php  echo $_assoc['nickname'];?><span class="fix" >修改昵称</span></dd>
                            <dd><span>邮箱：</span><?php  echo $_assoc['email'];?></dd>
                            <dd><span>手机号码：</span><?php  echo $_assoc['phone'];?></dd>
                            <dd><span>微信：</span><?php  echo $_assoc['wx'];?></dd>
                            <dd><span>选择住址：</span></dd>
                            <div class="city-picker-select"></div>
                            <hr>
                            <dd>修改头像</dd>

                            <i class="iii"><img src='<?php  echo $_assoc['headicon'];?>' alt=""></i>
                            <span class="change_img"><a href="person.php?change=3&yes=1" title="">本地照片</a></span>
                            <span class="change_img"><a href="person.php?change=3&yes=1" title="">系统头像</a></span>
                            <dd>支持jpg、gif、png格式图片，上传文件大小不超过5MB，图片尺寸需大于200*200。</dd>
                            <form action="data/user/add_user_info.php" method="post" accept-charset="utf-8">
                               <ul>
                                    <?php
                                    if(isset($_GET['yes']))
                                    {
                                              foreach(range(3,19) as $num){

                                        echo ' <li><img src="images/headicon/icon'.$num.'.jpg" alt=""></li>';

                                      }
                                      echo '<input class="hidden" type="hidden" name="country" value="" />';
                                      // echo '<a class="save" href="person.php?change=3&change=3">保存</a>';
                                    echo '<input class="save" type="submit" name="submit" value="保存" />';

                                    }

                                    ?>
                                </ul>
                            </form>
                            <div class="clearw">

                            </div>
                            <hr>
                            <dd>隐私设置</dd>
                            <dd class="yinsi">个人主页：</dd>
                            <span>设置谁可以查看我的个人主页</span><br />
                            <form action="data/user/person_add_intro.php" method="post" accept-charset="utf-8">


                            <div class="yinsi_1">
                                <input type="radio" name="yinsi" value="1" checked="checked">  所有人
                            </div>
                            <div class="yinsi_1">
                                <input type="radio" name="yinsi" value="0" checked="">  部分人
                            </div>
                             <dd>个人简介：</dd>
                           <textarea name="intro" class="intro" rows="6" cols="20"></textarea>
                            <!-- <a href="?" class="submit"  title="">保存</a> -->
                            <input class="submit" type="submit" name="submit" value="提交">
                             </form>
                        </dl>

                </div>